home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / cool / cool.lha / ice / util / os2dirs < prev    next >
Encoding:
Text File  |  1991-09-04  |  1.4 KB  |  38 lines

  1. #! /bin/csh
  2. #
  3. # Copyright (C) 1991 Texas Instruments Incorporated.
  4. #
  5. # Permission is granted to any individual or institution to use, copy, modify,
  6. # and distribute this software, provided that this complete copyright and
  7. # permission notice is maintained, intact, in all copies and supporting
  8. # documentation.
  9. #
  10. # Texas Instruments Incorporated provides this software "as is" without
  11. # express or implied warranty.
  12. #
  13. # Create an OS2 command file which will create the COOL directory structure
  14. # The PC FTP doesn't create directories, so this is required to create the
  15. # directories before the COOL files can be FTP'ed over.
  16. #
  17. # Usage: cd ice; util/os2dirs;
  18. #
  19. echo "Creating os2 command file, util/os2dirs.cmd, to create ice and cool directories"
  20. if $1 == "" set DIRS = "cpp cool pisces"
  21. echo "REM Create all the COOL directories" > util/os2dirs.cmd
  22. echo "@echo off" >> util/os2dirs.cmd
  23. echo "mkdir \ice" >> util/os2dirs.cmd
  24. echo "cd \ice" >> util/os2dirs.cmd
  25. echo "mkdir bin" >> util/os2dirs.cmd
  26. echo "mkdir ccc" >> util/os2dirs.cmd
  27. echo "mkdir ice_defs" >> util/os2dirs.cmd
  28. echo "mkdir include" >> util/os2dirs.cmd
  29. echo "mkdir include\cool" >> util/os2dirs.cmd
  30. echo "mkdir lib" >> util/os2dirs.cmd
  31. echo "mkdir lib\os2" >> util/os2dirs.cmd
  32. echo "mkdir test" >> util/os2dirs.cmd
  33. echo "mkdir util" >> util/os2dirs.cmd
  34. foreach DIR ($DIRS)
  35.   find $DIR -type d -print | egrep -v 'RCS' | \
  36.   sed -e s'@/@\\@'g -e s'/^/mkdir /' >> util/os2dirs.cmd
  37. end
  38.